package com.xx.ch07.demo.demo13;

import com.xx.ch07.demo.demo01.SysUser1;
import com.xx.ch07.demo.demo02.SysUser;
import com.xx.ch07.demo.demo08.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @author 许欣
 * 时间：2022/4/18 11:21
 * 描述：
 */
public class SysUserServiceImpl implements SysUserService {
    @Autowired
    private SysUser sysUser;
    @Override
    public List<SysUser1> getList(SysUser1 sysUser1) {
        try{
            return sysUser.selectSysUserList(sysUser1);
        }catch (RuntimeException e){
            e.printStackTrace();
            throw e;
        }
    }

    @Override
    public boolean add(SysUser1 sysUser1) {
        return false;
    }
}
